{% for key, value in hierarchy %}
    <a href="{{ url(data[key]['href']) }}">{{ data[key]['name'] }}</a>
    {% if loop.last is false %} | {% endif %}
{% endfor %}